package ai.zixing.controller;

import ai.zixing.OrderContext;
import ai.zixing.OrderHandleChainService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ChainController {

    @Resource
    private OrderHandleChainService orderHandleChainService;

    @GetMapping("/test")
    public void explainPlan() {
        orderHandleChainService.execute(new OrderContext());
    }
}
